﻿<UserControl  x:Class="SqlServerMaintenanceSolution.Views.DiskSpaceTab"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" Height="670" >
    <Grid>
        <TextBox Visibility="Hidden" Name="tb_instace" Text="{Binding SqlServerInstance.CompleteName}"  Margin="64,43,190,178" Height="52" Width="187"/>
        <TextBox Visibility="Hidden" Name="tb_auth" Text="{Binding SqlServerAuthentication.DisplayName}" Margin="18,116,253,105" Height="52" Width="170" />
        <Button Content="Load Database Data" Command="{Binding ConnectClickCommand}" HorizontalAlignment="Left" Margin="10,10,0,0" VerticalAlignment="Top" Width="154"/>
        <DataGrid  Name="gridDataBases" CanUserAddRows="False" SelectionMode="Single" ItemsSource="{Binding Databases}" SelectedItem="{Binding Path=SelectedDataBase, Mode=TwoWay}" CanUserDeleteRows="False" IsReadOnly="True" AutoGenerateColumns="True" HorizontalAlignment="Left" Height="184" Margin="10,100,0,0" VerticalAlignment="Top" Width="Auto">
        </DataGrid>
        <DataGrid  Name="gridDataBaseFileDetails" CanUserAddRows="False" SelectionMode="Single" ItemsSource="{Binding DatabaseFileDetails}" SelectedItem="{Binding Path=SelectedDatabaseFileDetail, Mode=TwoWay}" CanUserDeleteRows="False" IsReadOnly="True" AutoGenerateColumns="True" HorizontalAlignment="Left" Height="184" Margin="10,310,0,0" VerticalAlignment="Top" Width="820">
            <DataGrid.ContextMenu>
                <ContextMenu>
                    <MenuItem Header="Shrink" Command="{Binding ShrinkClickCommand}">
                        <MenuItem.Icon>
                            <Image Width="12" Height="12" Source="../Images/shrink.png" />
                        </MenuItem.Icon>
                    </MenuItem>
                </ContextMenu>
            </DataGrid.ContextMenu>
        </DataGrid>
    </Grid>
</UserControl>